package day7;

public class Car {
    private String color, number;

    public Car() {
    }

    public Car(String color, String number) {
        this.color = color;
        this.number = number;
    }

    public void start() {
        System.out.println("启动");
    }

    public void accelerate() {
        System.out.println("加速");
    }

    public void brake() {
        System.out.println("刹车");
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
}